import { Component } from '@angular/core';
import {Router, RouterModule, RouterOutlet} from "@angular/router";

@Component({
  selector: 'app-index',
  standalone: true,
  imports: [RouterOutlet,RouterModule],
  templateUrl: './index.component.html',
  styleUrl: './index.component.css'
})
export class IndexComponent {

  constructor(private router: Router) {
  }
  doClick() {
    console.log("doClick")
  }

  doJump() {
    this.router.navigateByUrl('/product-List').then(r => console.log(r))
  }
}
